package com.beidu.lottery.call.entity.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.beidu.lottery.call.entity.common.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 活动列表查询
 *
 * @author 北渡
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ActivityListQuery extends PageQuery implements Serializable {

    @ApiModelProperty(value = "活动属性(0-全部活动、1-我的活动)")
    private Integer activityAttribute;

    @ApiModelProperty(value = "活动状态(0-进行中、1-未开始、2-已结束)")
    private Integer activityStatus;

    @ApiModelProperty(value = "活动类型(0-报名活动、1-投票活动)")
    private Integer activityType;

    @ApiModelProperty(value = "上下架状态状态(0:下架, 1:上架, 2:草稿)")
    private Integer groundingStatus;

    @ApiModelProperty(value = "创建日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateBegin;

    @ApiModelProperty(value = "创建日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateEnd;

    @ApiModelProperty(value = "活动名称或活动id")
    private String keyWord;

    private String userId;


}
